package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Tag;
import com.bwie.service.TagService;
import com.bwie.mapper.TagMapper;
import com.bwie.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 陶仕豪
* @description 针对表【tb_tag(标签表)】的数据库操作Service实现
* @createDate 2025-05-26 20:59:18
*/
@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag>
    implements TagService{
    @Autowired
    TagMapper tagMapper;

    @Override
    public Result getTagList() {
        List<Tag> tagList = tagMapper.selectList(null);
        return Result.ok().setData(tagList);
    }
}




